Skip to content

Call a method for mouse or keyboard 'pre-selection' #130

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

karussell
Copy link

When doing mouse over or doing up+down with the keyboard I wanted to call a kind of preview on my site. So I needed a hook for that. Which requires some changes. E.g. the event name mouseover.autocomplete->mouseenter.autocomplete and mouseleave as otherwise the events were called too often: one time for the highlighted part and one for the normal text.

Please have a look as this plugin jquery magic is very new to me.

@tkirda
Copy link
Member

tkirda commented Dec 2, 2013

I will take a look, you are not the first who needs this functionality.

@Mr0grog
Copy link

Mr0grog commented Jan 16, 2014

This would be really great to have. The input we have autocomplete attached to changes size based on the text in it, so we also have to have a workaround so that we can update the input's size when an option is pre-selected (since it updates the text in the input). Having a method or event for this would make that process much more straightforward.

@karussell
Copy link
Author

BTW: You can see that in action now on http://graphhopper.com/maps where one can do mouse-over or "pre-select" via keyboard and the map will show the location or show the calculated route.

@talha-asad
Copy link

Wake up and merge this.

@karussell
Copy link
Author

I have to add: the pre-selection via mouse was distracting at some point for the user (e.g. typing while having the mouse below the input make strange stuff). So I had to disable it and now only pre-selection via keyboard is possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants